package com.kele.api.goods;


import com.kele.common.model.response.PageResult;
import com.kele.common.model.response.Result;
import com.kele.model.goods.Specification;
import com.kele.model.goods.dto.SpecificationDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.List;
import java.util.Map;

@Api(value="规格管理接口",description = "提供规格的增、删、改、查")
public interface SpecificationControllerApi {

    @ApiOperation("查询所有规格")
    public List<Specification> findAll();

    @ApiOperation("根据条件分页查询规格")
    public PageResult<Specification> findPage(int page, int size, Map searchMap);

    @ApiOperation("根据ID查询规格")
    public SpecificationDTO findById(Long id);

    @ApiOperation("新增/修改规格")
    public Result save(SpecificationDTO specificationDTO);

    @ApiOperation("根据ID删除规格")
    public Result delete(Long id);

    @ApiOperation("根据ID批量删除规格")
    public Result deleteByIds(Long[] ids);

}
